package com.ruoyi.fly.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.function.LongToDoubleFunction;

@Data
@NoArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "ProductCategory", description = "产品分类")
@AllArgsConstructor
public class ProductCategory implements Serializable {

    /**
     * 主键id
     */
    private String id;

    private String tenantCode;

    /**
     * 类目简称
     */
    @ApiModelProperty(value = "类目简称")
    private String shortName;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    /**
     * 类目关联页面路径
     */
    @ApiModelProperty(value = "类目关联页面路径")
    private String categoryPath;

    /**
     * 分类图片
     */
    @ApiModelProperty(value = "分类图片")
    private String categoryImg;

    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    private String depth;

    /**
     * 父类目名称
     */
    @ApiModelProperty(value = "父类目名称")
    private String parentName;

    /**
     * 父类目id
     */
    @ApiModelProperty(value = "父类目id")
    private Long parentId;

    /**
     * 排序值
     */
    @ApiModelProperty(value = "排序值")
    private Long sortOrder;

    /**
     * 状态 1-启用 0-禁用
     */
    @ApiModelProperty(value = "状态 1-启用 0-禁用")
    private String status;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Long createUser;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    /**
     * 逻辑删除  1-删除 0-未删除
     */
    @ApiModelProperty(value = "逻辑删除  1-删除 0-未删除")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

}
